package com.zryc.controller;


import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.zryc.service.OrderServiceImpl3;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//@RestController
@Slf4j
public class OrderController3 {
    @Autowired
    private OrderServiceImpl3 orderServiceImpl3;

    @RequestMapping("/order/message1")
    public  String message1(){
        return orderServiceImpl3.massage()+1;
    }
    @RequestMapping("/order/message2")
    public  String message2(){
        return orderServiceImpl3.massage()+2;
    }
    @RequestMapping("/order/message3")
    @SentinelResource("message3")
    public  String message3(String name,Integer age){
        return name+"/"+age;
    }




}
